home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / sun4.md / readline / Makefile < prev    next >
Encoding:
Makefile  |  1992-06-30  |  5.7 KB  |  224 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. host_alias = sun4
  3. host_cpu = sparc
  4. host_vendor = sun
  5. host_os = sunos411
  6. target_alias = sun4
  7. target_cpu = sparc
  8. target_vendor = sun
  9. target_os = sunos411
  10. target_makefile_frag = 
  11. host_makefile_frag = 
  12. site_makefile_frag = 
  13. links = sysdep.h
  14. VPATH = .
  15. ALL=all.internal
  16. #
  17. # Makefile
  18. #   Copyright (C) 1990, 1991, 1992 Free Software Foundation
  19. #
  20. # This file is free software; you can redistribute it and/or modify
  21. # it under the terms of the GNU General Public License as published by
  22. # the Free Software Foundation; either version 2 of the License, or
  23. # (at your option) any later version.
  24. # This program is distributed in the hope that it will be useful,
  25. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. # GNU General Public License for more details.
  28. # You should have received a copy of the GNU General Public License
  29. # along with this program; if not, write to the Free Software
  30. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  31. #
  32.  
  33. #
  34. # Makefile for readline and history libraries.
  35. #
  36.  
  37. srcdir = .
  38.  
  39. prefix = /usr/local
  40.  
  41. exec_prefix = $(prefix)
  42. bindir = $(exec_prefix)/bin
  43. libdir = $(exec_prefix)/lib
  44.  
  45. datadir = $(prefix)/lib
  46. mandir = $(prefix)/man
  47. man1dir = $(mandir)/man1
  48. man2dir = $(mandir)/man2
  49. man3dir = $(mandir)/man3
  50. man4dir = $(mandir)/man4
  51. man5dir = $(mandir)/man5
  52. man6dir = $(mandir)/man6
  53. man7dir = $(mandir)/man7
  54. man8dir = $(mandir)/man8
  55. man9dir = $(mandir)/man9
  56. infodir = $(prefix)/info
  57. includedir = $(prefix)/include
  58. docdir = $(datadir)/doc
  59.  
  60. SHELL = /bin/sh
  61.  
  62. INSTALL = install -c
  63. INSTALL_PROGRAM = $(INSTALL)
  64. INSTALL_DATA = $(INSTALL)
  65.  
  66. AR = ar
  67. AR_FLAGS = qv
  68. BISON = bison
  69. MAKEINFO = makeinfo
  70. RANLIB = ranlib
  71.  
  72. #### Host, target, and site specific Makefile fragments come in here.
  73. ###
  74.  
  75. # Define TYPES as -DVOID_SIGHANDLER if your operating system uses
  76. # a return type of "void" for signal handlers.
  77. TYPES = -DVOID_SIGHANDLER
  78.  
  79. # HP-UX compilation requires the BSD library.
  80. #LOCAL_LIBS = -lBSD
  81.  
  82. # Xenix compilation requires -ldir -lx
  83. #LOCAL_LIBS = -ldir -lx
  84.  
  85. # Comment out "-DVI_MODE" if you don't think that anyone will ever desire
  86. # the vi line editing mode and features.
  87. READLINE_DEFINES = $(TYPES) -DVI_MODE
  88.  
  89. MINUS_G=-g -O
  90. DEBUG_FLAGS = $(MINUS_G)
  91. LDFLAGS = $(DEBUG_FLAGS) 
  92. CFLAGS = $(H_CFLAGS) $(DEBUG_FLAGS) $(USG) -I. $(LOCAL_INCLUDES) $(CPPFLAGS) $(READLINE_DEFINES)
  93.  
  94. # A good alternative is gcc -traditional.
  95. #CC = gcc -traditional
  96. RM = rm
  97. CP = cp
  98.  
  99. LOCAL_INCLUDES = -I$(srcdir)/../
  100.  
  101. CSOURCES = readline.c history.c funmap.c keymaps.c vi_mode.c \
  102.        emacs_keymap.c vi_keymap.c
  103.  
  104. HSOURCES = readline.h chardefs.h history.h keymaps.h
  105. SOURCES  = $(CSOURCES) $(HSOURCES)
  106.  
  107. DOCUMENTATION = readline.texi inc-read.texi \
  108.         history.texi inc-hist.texi
  109.  
  110. SUPPORT = COPYING Makefile $(DOCUMENTATION) ChangeLog
  111.  
  112. THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
  113.  
  114. ##########################################################################
  115.  
  116. STAGESTUFF = *.o
  117.  
  118. all: libreadline.a
  119.  
  120. check:
  121. info:
  122.  
  123. clean-info: force
  124.     -rm -f *.info*
  125.  
  126. history.info: $(srcdir)/history.texi
  127.     $(MAKEINFO) -o history.info $(srcdir)/history.texi
  128.  
  129. readline.info: $(srcdir)/readline.texi $(srcdir)/inc-read.texi
  130.     $(MAKEINFO) -o readline.info $(srcdir)/readline.texi
  131.  
  132. libreadline.a:    readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
  133.     $(RM) -f libreadline.a
  134.     $(AR) $(AR_FLAGS) libreadline.a readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
  135.     $(RANLIB) libreadline.a
  136.  
  137. readline.o:    readline.h chardefs.h  keymaps.h history.h readline.c vi_mode.c
  138. history.o:    history.c history.h
  139. funmap.o:    readline.h
  140. keymaps.o:    emacs_keymap.c vi_keymap.c keymaps.h chardefs.h keymaps.c
  141.  
  142. tilde.o:    $(srcdir)/../glob/tilde.c
  143.     $(CC) -c $(CFLAGS) $(srcdir)/../glob/tilde.c
  144.  
  145. libtest:    libreadline.a libtest.c
  146.     $(CC) -o libtest $(CFLAGS) $(CPPFLAGS) -L. libtest.c -lreadline -ltermcap
  147.  
  148. readline: readline.c history.o keymaps.o funmap.o readline.h chardefs.h vi_mode.o
  149.     $(CC) $(CFLAGS) $(CPPFLAGS) $(READLINE_DEFINES) \
  150.         $(LOCAL_INCLUDES) -DTEST -o readline readline.c funmap.o \
  151.          keymaps.o history.o vi_mode.o -L. -ltermcap
  152.  
  153. readline.tar:    $(THINGS_TO_TAR)
  154.         tar -cf readline.tar $(THINGS_TO_TAR)
  155.  
  156. readline.tar.Z:    readline.tar
  157.         compress -f readline.tar
  158.  
  159. install:
  160.         $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
  161.         $(RANLIB) $(libdir)/libreadline.a
  162.         [ -d $(includedir)/readline ] || mkdir $(includedir)/readline
  163.         $(INSTALL_DATA) $(srcdir)/readline.h $(includedir)/readline/readline.h
  164.         $(INSTALL_DATA) $(srcdir)/keymaps.h $(includedir)/readline/keymaps.h
  165.         $(INSTALL_DATA) $(srcdir)/chardefs.h $(includedir)/readline/chardefs.h
  166.  
  167. install-info: info
  168. #        for i in *.info* ; do \
  169. #            $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  170. #        done
  171.  
  172. includes:
  173.         if [ ! -r $(INCDIR)/readline ]; then\
  174.          mkdir $(INCDIR)/readline;\
  175.          chmod a+r $(INCDIR)/readline;\
  176.         fi
  177.         $(INSTALL_FILE) $(srcdir)/readline.h $(INCDIR)/readline/
  178.         $(INSTALL_FILE) $(srcdir)/keymaps.h $(INCDIR)/readline/
  179.         $(INSTALL_FILE) $(srcdir)/chardefs.h $(INCDIR)/readline/
  180. clean:
  181.         rm -f $(STAGESTUFF) *.a *.log *.cp *.tp *.vr *.fn
  182.         rm -f *.aux *.pg *.toc
  183.  
  184. $(DESTDIR)/libreadline.a: libreadline.a
  185.  
  186. # Copy the object files from a particular stage into a subdirectory.
  187. stage1: force
  188.     -mkdir stage1
  189.     -mv $(STAGESTUFF) stage1
  190.  
  191. stage2: force
  192.     -mkdir stage2
  193.     -mv $(STAGESTUFF) stage2
  194.  
  195. stage3: force
  196.     -mkdir stage3
  197.     -mv $(STAGESTUFF) stage3
  198.  
  199. against=stage2
  200.  
  201. comparison: force
  202.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
  203.  
  204. de-stage1: force
  205.     -(cd stage1 ; mv -f * ..)
  206.     -rmdir stage1
  207.  
  208. de-stage2: force
  209.     -(cd stage2 ; mv -f * ..)
  210.     -rmdir stage2
  211.  
  212. de-stage3: force
  213.     -(cd stage3 ; mv -f * ..)
  214.     -rmdir stage3
  215.  
  216. force:
  217.  
  218. # with the gnu make, this is done automatically.
  219.  
  220. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  221.     $(SHELL) ./config.status
  222.